//
//  UIView+category.h
//  QQplayground
//
//  Created by 王昭的Mac Air on 2018/6/10.
//  Copyright © 2018年 zhang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (category)

/**
 添加单击手势
 */
- (void)addTapGestureRecognizerWithTarget:(id)target action:(SEL)sel;

/**
 添加长按手势
 */
- (void)addLongGestureRecognizerWithTarget:(id)target action:(SEL)sel;

/**
 添加拖拽手势
 */
- (void)addPanGestureRecognizerWithTarget:(id)target action:(SEL)sel;

/**
 添加左滑手势
 */
- (void)addLeftSwipeGestureRecognizerWithTarget:(id)target action:(SEL)sel;

/**
 添加右滑手势
 */
- (void)addRightSwipeGestureRecognizerWithTarget:(id)target action:(SEL)sel;

/**
 添加上滑手势
 */
- (void)addUpSwipeGestureRecognizerWithTarget:(id)target action:(SEL)sel;

/**
 添加下滑手势
 */
- (void)addDownSwipeGestureRecognizerWithTarget:(id)target action:(SEL)sel;

/**
 删除view上所有手势
 */
- (void)removeAllGestureRecognizer;

@end
